package me.hellp.helloworld.design.adapter;

/**
 * 对象适配器，组合的方式实现
 * 
 * @author linxm
 *
 */
public class Socket1Adapter implements ISocket{
	private SocketTypeA socket;
	
	public Socket1Adapter(SocketTypeA socket){
		this.socket = socket;
	}
	
	@Override
	public void run() {
		socket.specialMethod();
	}

}
